package com.sgb.kjwl.view.ui.adapter.material;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.user.MaterChooseEntity;
import com.swgk.core.customview.ScreenTextView;

import java.util.List;

/**
 * 作者:张磊
 * 日期:2021/4/5 0008
 * 说明:全部商品的item
 */
public class MatterAdapter extends BaseQuickAdapter<MaterChooseEntity, BaseViewHolder> {


    public MatterAdapter(List<MaterChooseEntity> beans) {
        super(R.layout.matter_adapter, beans);
    }

    @Override
    protected void convert(BaseViewHolder helper, final MaterChooseEntity item) {
        ScreenTextView screenTextView = helper.getView(R.id.stv_select);
        screenTextView.setText(item.getName());
    }
}